/*
 * define.h
 *
 *  Created on: Dec 18, 2014
 *      Author: root
 */
/******************************************************************************************************************/
#ifndef UTIL_DEFINE_H_
#define UTIL_DEFINE_H_
/******************************************************************************************************************/
#define MAX_ATTR 32
#define MAX_LABEL 64
#define INFO_LEN 1024
#define FIRST_N 3
#define FIRST_N_TCP FIRST_N
#define FIRST_N_UDP 5
#define BIG_ENOUGH (1024*1024)
#define MAX_TCP_EU_DIS 1024*1024
#define MAX_UDP_EU_DIS MAX_TCP_EU_DIS
#define TCP_EU_DIS_MAX 0.1
#define UDP_EU_DIS_MAX 0.1
#define EU_DIS_MAX 0.1
#define TCP_COS_DIS_MAX cos(15)
#define UDP_COS_DIS_MAX cos(15)
#define MICRO_SEC 1000000

#define MAX_DATA 1500

#define TCP_INVALID -1
#define TIMEOUT_INTERVAL 60

#define UDP_TIMEOUT -1
#define UDP_TIMEOUT_INTERVAL 60

#define TCP_INVALID_STATE -1
#define TCP_MAX_DATA 65535

#define UDP_HEADER_LEN 8

#define PCAP_FILE_DIR "./pcaps/"
#define PCAP_FILE_TCP "./pcaps/ssh-02.pcapng"
#define PCAP_FILE_UDP "./pcaps/kankan-01.pcapng"
#define PCAP_FILE_HTTP "./pcaps/http-01.pcapng"

#define DO_NOT_EXIST 0
#define CLIENT_TO_SERVER 1
#define SERVER_TO_CLIENT -1

#define PKT_INTERVAL 100000
/******************************************************************************************************************/
#endif /* UTIL_DEFINE_H_ */
